package org.freemarker.web.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.freemarker.web.custom.CustomHttpServlet;

public class LogoutController extends CustomHttpServlet{
	private static final long serialVersionUID = -3599074456425331940L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		// TODO Auto-generated method stub
		req.getSession().invalidate();
		resp.sendRedirect("home");
	}
}
